<?php 
	require_once 'include/comm.inc.php';
	require_once 'functions.php';
	
	if (isset($_SESSION['urlArray'])){
		$urlArray=$_SESSION['urlArray'];
		unset($_SESSION['urlArray']);
	}

	$clien_info_sql="INSERT INTO `client_user`  VALUES (NULL, '".$urlArray['client_user_name']."', '".$urlArray['client_user_link']."', '".$urlArray['client_user_date_s']."', '".$urlArray['client_user_date_e']."', '".$urlArray['client_user_pv_number']."', '1', '".$urlArray['agency_user']."');";
	$clien_info_return=$db->query($clien_info_sql);

	/**
	 * 用户记录插入
	 */
	if ($clien_info_return){
		$id_returm=mysql_insert_id();
		$clien_info_sql="INSERT INTO `client_user_record`  VALUES ('".$urlArray['client_user_link']."', '".$urlArray['client_user_date_s']."', '".$urlArray['client_user_date_e']."', '".$urlArray['client_user_pv_number']."', '".time()."', '".$id_returm."');";
		$clien_info_return=$db->query($clien_info_sql);
	}


	

		redirect('menberIndex.php');

?>